package sandbox.controller.admin;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.datastore.Datastore;

public class DeleteController extends Controller {

    @Override
    public Navigation run() {
        Datastore.delete(Datastore.stringToKey(param("key")));

        return redirect("/");
    }
}
